﻿using Windows.Service.Share;

namespace Windows.Admin.Service
{
    public interface IRoleService
    {
        /// <summary>
        /// 获取所有角色
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<List<RoleResponse>> GetBasicRoles(IdsRequest request);
        /// <summary>
        /// 角色视图
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PageResponse<RoleResponse>> Query(PageRequest<RoleRequest> request);
        /// <summary>
        /// 获取id的角色详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<RoleResponse> Detail(int id);
        /// <summary>
        /// 角色保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(RoleSaveRequest request);
        /// <summary>
        /// 角色删除
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Remove(IdsRequest request);
        /// <summary>
        /// 绑定角色
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task BindRoles(BindRolesRequest request);
    }
    
}
